#define _CRT_SECURE_NO_WARNINGS
#include"queue.h"
void q1() {
	CQueue* x = cQueueCreate();
	printf("%d ", cQueueDeleteHead(x));
	cQueueAppendTail(x, 12);
	printf("%d ", cQueueDeleteHead(x));
	cQueueAppendTail(x, 10);
	cQueueAppendTail(x, 9);
	printf("%d ", cQueueDeleteHead(x));
	printf("%d ", cQueueDeleteHead(x));
	printf("%d ", cQueueDeleteHead(x));
	cQueueAppendTail(x, 20);
	printf("%d ", cQueueDeleteHead(x));
	cQueueAppendTail(x, 1);
	cQueueAppendTail(x, 8);
	cQueueAppendTail(x, 20);
	cQueueAppendTail(x, 1);
	cQueueAppendTail(x, 11);
	cQueueAppendTail(x, 2);
	printf("%d ", cQueueDeleteHead(x));
	printf("%d ", cQueueDeleteHead(x));
	printf("%d ", cQueueDeleteHead(x));
	printf("%d ", cQueueDeleteHead(x));
}
void q2() {
	RecentCounter* x = recentCounterCreate();
	printf("%d ", recentCounterPing(x, 1));
	printf("%d ", recentCounterPing(x, 100));
	printf("%d ", recentCounterPing(x, 3001));
	printf("%d ", recentCounterPing(x, 3002));
}
void q3() {
	MyQueue* x = myQueueCreate();
	myQueuePush(x, 1);
	printf("%d ", myQueuePop(x));
	myQueuePush(x, 2);
	
	printf("%d ", myQueuePop(x));
}
int main() {
	q3();
}